package com.sc.service.favorites;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.dal.mapper.favorites.FavoritesMapper;
import com.sc.dal.model.favorites.Favorites;
import com.sc.service.BaseServiceImpl;

/**
 * @ClassName: FavoritesService
 * @Description: 处理购物车业务逻辑层
 * @author LeiJia
 * @date 2017年3月8日 下午2:09:26
 * @version V1.0
 */
@Service
public class FavoritesService extends  BaseServiceImpl<Favorites> {
	  @Autowired
      private FavoritesMapper favoritesMapper;
	  
	  public int insert(Favorites favorite){
		return   favoritesMapper.insert(favorite);
	  }
	  public int updateByPrimaryKeySelective(Favorites favorites){
	    return  favoritesMapper.updateByPrimaryKeySelective(favorites);
	  }
	  
	  public Favorites selectByParam(Favorites favorite){
		  return favoritesMapper.selectByParamCon(favorite);
	  }
}
